package com.dinian.demeter.service.impl;

import com.dinian.demeter.domain.Role;
import com.dinian.demeter.domain.User;
import com.dinian.demeter.mapper.RoleMapper;
import com.dinian.demeter.mapper.UserMapper;
import com.dinian.demeter.service.RoleService;
import com.dinian.demeter.service.UserService;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Log
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Set<Role> findRolesByUserId(Long userId) {
        Set<Role> roles = roleMapper.queryRoleByUserId(userId);
        return null;
    }
}
